package com.zyh.service;

import com.zyh.entity.Book;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BookService {
    void insert(Book book);
    void deleteByBookId(Integer bookId);
    void deletesByTypeId(Integer typeId);
    void deletesByBookId(int[] ids);
    void updateByBookId(Book book);
    Book selectByBookId(Integer bookId);
    int selectCount();
    List<Book> selectByTypeId(Integer typeId);
    List<Book> selectBooks(Integer start,Integer pageSize,
                           @Param("nameSearch") String nameSearch,
                           @Param("priceSearch") Double priceSearch,
                           @Param("typeSearch") String typeSearch);
}
